package service.custom.impl;

import java.util.List;

import dao.CompanybasicDao;
import service.custom.CompanyBasicService;
import model.company.Companybasic;

public class CompanyBasicServiceImpl implements CompanyBasicService{
	private CompanybasicDao companybasicDao;
	
	
	public List<?> getCompanyBasicList(){
		String select="new vo.ListCompanyBasicBean(companybasic.id,companybasic.name)";
		//String hh = "select new vo.ListCompanyBasicBean(companybasic.id,companybasic.name) ";
		String hql = "Companybasic as companybasic";
		return companybasicDao.findQuery(select,hql,10);
	}
	
	
	public Companybasic save(Companybasic companybasic){
		System.out.println(companybasic);
		
		return this.companybasicDao.save(companybasic);
	}
	
	
	
	public CompanybasicDao getCompanybasicDao() {
		return companybasicDao;
	}
	public void setCompanybasicDao(CompanybasicDao companybasicDao) {
		
		this.companybasicDao = companybasicDao;
	}
	
	

}
